﻿<!--==Copyright comes here==-->
<UserControl x:Class="P2.Cuberry.Modules.Framework.User.UsersListView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    >

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/P2.Cuberry.Framework.Layout;component/Styles/Styles.xaml"/>
                <ResourceDictionary Source="/P2.Cuberry.Framework.Layout;component/Styles/CuberryDataGrid.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>

    <Grid VerticalAlignment="Stretch">
        <Grid.RowDefinitions>
            <RowDefinition Height="*" MinHeight="44" />
        </Grid.RowDefinitions>


        <DataGrid Grid.Row ="0"  
                     Name="UsersList"
                     SelectionChanged="UsersList_SelectionChanged" 
                     MouseDoubleClick="UsersList_DblClick" 
                     Style="{DynamicResource CuberryDataGridStyle}"
                     VerticalAlignment="Stretch" >
            
            <DataGrid.Columns>
                <DataGridTextColumn Header="{Translate UserIDL}" Binding="{Binding Path=UserID}" MinWidth="50" Width="200"/>
                <DataGridTextColumn Header="{Translate UserGroupNamesL}" Binding="{Binding Path=UserGroupName}" MinWidth="50" Width="200"/>
                <DataGridTextColumn Header="{Translate UserEmployeeIDL}" Binding="{Binding Path=EmployeeID}" MinWidth="50" Width="100"/>
                <DataGridTextColumn Header="{Translate UserDetailsL}" Binding="{Binding Path=Details}" MinWidth="50" Width="150"/>
                <DataGridTextColumn Header="{Translate UserNoteL}" Binding="{Binding Path=Note}" MinWidth="50" Width="*"/>
                <DataGridCheckBoxColumn  Header="{Translate ActiveL}" Binding="{Binding Path=Active}" IsReadOnly="True" MinWidth="50" Width="50"/>



            </DataGrid.Columns>
        </DataGrid>

    </Grid>
</UserControl>
